import Service.EarnLog;
import model.User;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        boolean flag = true;
        Scanner scan = new Scanner(System.in);
        while (flag){
            User user = new User();
            System.out.println("========================");
            System.out.println("   欢迎使用个人账单系统   ");
            System.out.println("========================");
            System.out.println("请输入操作:");
            System.out.println("1. 记录收入");
            System.out.println("2. 记录支出");
            System.out.println("3. 查看所有账单");
            System.out.println("4. 查询账单");
            System.out.println("5. 设置月度预算");
            System.out.println("6. 查看月度统计报告");
            System.out.println("7. 退出系统");
            System.out.print("请输入选项序号: ");
            int order = scan.nextInt();
            switch (order) {
                case 1:
                    EarnLog(user);
                    break;
                case 2:

                    break;
                case 3:

                    break;
                case 4:

                    break;
                case 5:

                    break;
                case 6:

                    break;
                case 7:
                    flag = false;
                    break;
            }
        }
        System.out.println("已退出系统....");
    }
}
